<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Index</title>
</head>
<body>
<h1>Hello,张锦波</h1>
基本注解:
<hr/>
<a href="/monster/100/king">@PathVariable-路径变量 monster/100/king</a><br/><br/>
<a href="/requestHeader">@RequestHeader-获取http请求头</a><br/><br/>
<a href="/hi?name=张锦波&fruit=apple&fruit=pear">@RequestParam-获取请求参数</a><br/><br/>
<a href="/cookie">@CookieValue-获取cookie值</a><br/><br/>
<a href="/login">@RequestAttribute-获取request域中的数据</a>
<hr>
<h1>测试@RequestBody获取数据:获取POST请求体</h1>
<form action="/save" method="post">
    姓名:<input type="text" name="name"/><br>
    年龄:<input type="text" name="age"/><br>
    <input type="submit" value="提交">
</form>
</body>
</html>